<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

/**
 * Class OrdersDetail
 */
class OrdersDetail extends Model
{
    protected $table = 'orders_details';

    public $timestamps = true;

    protected $fillable = [
        'order_id',
        'order_status',
        'admin_id',
        'message'
    ];

    protected $guarded = [];

    /**
     * @param \DateTime|int $value
     * @return false|int
     * @author dividez
     */
    public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }
}